package com.penglecode.dp.creational.prototype;

public class TestPrototype {

	public static void main(String[] args) {
		AbstractMobilePhone phone1 = new Iphone5();
		System.out.println(">>> hashCode = " + phone1.hashCode());
		phone1.setName("iPhone5 港行 16GB/白色");
		System.out.println(phone1.clone());
		System.out.println("---------------------------");
		AbstractMobilePhone phone2 = new GalaxyS4();
		System.out.println(">>> hashCode = " + phone2.hashCode());
		phone2.setName("三星GALAXY S4(I9500)");
		System.out.println(phone2.clone());
	}

}
